#ifndef _ASMLIB_H_
#define _ASMLIB_H_

#include <CType.h>

typedef struct {
    uint32_t quot;
    uint32_t rem;
} div_t;

typedef struct {
    uint32_t high;
    uint32_t low;
} mul_t;


void ldiv(int32_t x, int32_t y, div_t * pDiv);
void lmul(int32_t x, int32_t y, mul_t * pMul);

int32_t lushl(int32_t x, int8_t c);
int32_t lushr(int32_t x, int8_t c);

int16_t getIP();

#endif _ASMLIB_H_ /* end of _ASMLIB_H_ */

